package cz.ctu.guiproject.server.resources;

public class Constants {

	// String constants
	public static final String CURRENT_DIR = "./";
	public static final String CLASS_EXT = ".class";
	public static final String JAR_EXT = ".jar";
	public static final String CLIENT_UI_REQUEST = "ui-request";
	public static final String CLIENT_PROPAGATE_UI_UPDATE = "propagate-ui-update";
	public static final String CLIENT_EVENT_OCCURED = "event-occured";
	public static final String CLIENT_DISCONNECT_REQUEST = "disconnect-request";
	public static final String CLIENT_INIT_REQUEST = "init-request";
        public static final String CLIENT_FORCE_UI_UPDATE = "force-ui-update";
	public static final String DEVICE_NAME = "device-name";
	public static final String INSTALLED_COMPONENTS = "installed-components";
	public static final String CHARSET_UTF_8 = "UTF-8";
	public static final String VERSION_1_0 = "1.0";
	public static final String ACCEPTED_STATE = "accepted";
	public static final String CONFIG_URL = "url";
	public static final String CONFIG_NAME = "name";
	public static final String CONFIG_FILE = "file";
	public static final String REQUIRED_JARS = "required-jars";
	public static final String CLIENT_INIT_RESPONSE = "init-response";
	public static final String CLIENT_DISCONNECT_RESPONSE = "disconnect-response";
	public static final String CLIENT_UI_RESPONSE = "ui-response";
	public static final String CONFIG_CLIENT = "client";
	public static final String CONFIG_SERVER = "server";
        public static final String FORCE_VIEW_ID = "viewId";
        public static final String FORCE_ATTRIBUTE_NAME = "attrName";
        public static final String FORCE_ATTRIBUTE_VALUE = "attrValue";
        public static final String UNKNOWN_TAG = "TAG {0} has not been resolved!";
        public static final String CLIENT_EVENT_ID = "eventId";
        public static final String CLIENT_EVENT_KEYS = "keys";
        public static final String CLIENT_EVENT_VALUES = "values";
	// Error messages
	public static final String SAX_PREMATURE_END = "Sufficient data received.";
	public static final String CONFIG_FILE_SYNTAX_ERROR = "Wrong structure of input xml file!";
	// Path constants
	public static final String JAR_XML_PATH = "./jar-config.xml";
	public static final String LAYOUT_XML_PATH = "./layout.xml";
        public static final String JAR_DOWNLOAD_PATH = "./JAR_download";

	// char constants
	public static final char FORWARD_SLASH = '/';
	public static final char DOT = '.';
        public static final int BUFFER_SIZE = 1024;
}
